package com.itheima.work;

import java.io.IOException;

/**
 * @auther Macrydy
 * @date 2020/7/7 22:54
 */
public class FileUtilsTest {
    public static void main(String[] args) throws IOException {
//        Long aLong = FileUtils.copyFile("d:\\4.jpg", "d:\\5.jpg");
//        System.out.println(aLong);

        FileUtil f = new FileUtil("d:\\1.jpg", "d:\\5.jpg");

        Thread t1 = new Thread(f);
        Thread t2 = new Thread(f);
        t1.start();
        t2.start();
    }
}
